package com.iqiju.guagua.photo.wx.mini.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

@Data
@TableName("wx_mini_app")
public class WxMiniApp {

    @TableId(type = IdType.ID_WORKER_STR)
    private Long id;

    /* 小程序中文名 */
    private String name;

    /* 小程序唯一编码 */
    private String code;

    /* 小程序appid */
    @TableField("app_id")
    private String appId;

    /* 小程序秘钥 */
    @TableField("app_secret")
    private String appSecret;

    /* 本地秘钥 */
    private String secret;

    @TableField("create_time")
    private Date createTime;

    @TableField("create_id")
    private Long createId;

    @TableField("access_token")
    private String accessToken;

    private Long expires;

}
